<?php
$arr = array(array('id'=>1,'name' => 1),array('id'=>2,'name' => 2),array('id'=>3,'name' => 3));
echo json_encode($arr);
?>